﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;

namespace SCG.TurboSprite
{
    public class BreakingBitmapExplosionSprite : ParticleExplosionSprite
    {
        //constructor
        public BreakingBitmapExplosionSprite(Image image, int particles, int startDiam, int endDiam, int lifetime)
            : base(particles, Color.Transparent, Color.Transparent, startDiam, endDiam, lifetime)
        {
            Image = image;
        }

        //the underlying image
        public Image Image { get; set; }

        //particle creation
        public override ExplosionParticle CreateParticle()
        {
            return new BreakingBitmapParticle(this);
        }
    }
}
